
import 'package:flutter/material.dart';

/// todo：空文本组件
nullTextWidget(String? text){
  if(text == null || text == "null") text = "";
  return Text(text);
}

/// todo：空数据居中文本
nullCenterWidget({String? msg}){
  return Center(
    child: Text(msg ?? '暂无数据~'),
  );
}